package cn.laixueit.controller;

import cn.laixueit.pojo.User;
import cn.laixueit.service.UserService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {


    @Reference
    private UserService userService;

    @RequestMapping("/getname")
    public String getname(String name){
        return  userService.getname(name);
    }

    @RequestMapping("/showuser")
    public User showUser(){
        return userService.getUser();
    }
}
